<?php

class User_Form_Admin_Edit extends Form
{

	function init()
	{
		$this -> addChild('text', 'displayname', array(
			'label' => 'Display Name',
			'validators' => array('required')
		));

		$this -> addChild('text', 'username', array('label' => 'Username'));

		$this -> addChild('email', 'email', array('label' => 'Email Address'));

		$this -> addChild('gender', 'gender', array('label' => 'Gender', ));

		$this -> addChild('radio', 'role_id', array(
			'label' => 'Level',
			'multiOptions' => array(
				1 => 'super',
				2 => 'admin',
				3 => 'moderator',
				4 => 'editor',
				5 => 'member',
			),
			'value' => 1,
		));

		$this -> addChild('group', 'buttons');

		$this -> buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
